package com.ptswitch.material.service;

import java.util.List;

import com.ptswitch.material.model.common.Uzer;

public interface UserService {
    public Uzer findById(String id);

    public Uzer findByUsername(String username);

    public Uzer findByUsernameAndPassword(String username, String password);

    public List<Uzer> findByDepartment(int department);

    public boolean existUsername(String username);

    public boolean isAdmin(String username);

    public boolean isAdmins(String username);

    public List<Uzer> findAll();

    public long countAll();

    public void save(Uzer user);

    public void delete(Uzer user);
}
